using System;
using UnityEngine;

namespace Yoozoo.Gameplay.gta
{
    public class CameraShotHelper: MonoBehaviour
    {
        private CameraShot cameShot;
        private Camera _camera;
        private bool needCheck = false;
        private void Awake()
        {
             this.cameShot = GetComponent<CameraShot>();
             this._camera = GetComponent<Camera>();
        }

        private void OnApplicationPause(bool pause)
        {
            if (pause)   
            {
                Debug.Log("进入后台");

            }
            else
            {      
                Debug.Log("进入前台");
                if (this._camera!=null && !this._camera.enabled && !this.cameShot.enabled)
                {
                    this.cameShot.CheckMaskRT(); 
                }
                
            }
        }
    }
}